Revert "Revert "debug changes""

This reverts commit dd38a5671754e49af2300aecd83ae2e89326d780.
make command types a list
start pwm
finished pwm initial

still contains test code
PWM done & validation added
removed unnecessary comments
Removed debug code