Cleanup main a bit, remove newlines.
Ensure we clear clock bits so PWM actually stops when we hit stop.