starting in on motor/pwm implementation