Modified code to use new stepper motor and enable and direction commands