Motor and PWM fixed. Adressing #1 and #2.
Successful build.