added reverse direction to stepper motor