Documented code
Fixed bug in set_duty_cycle