Improving Contouring Accuracy in CNC Machines: Compensation and Control