Version 2 of timer PWM and OC

This version is tested and seems to be working.
Added support for pin= argument.