Working PWM

The "My code works and I don't know why" update.