changes to pwm, and added servo api