made change in the init of step and dir pins to be dynamic