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