Commented smoothing program, added servo detach