pwm support

Adds pwm support