added basic stepper motor control