Initial pretest implementation of PWM.
PWM now working.