Controlling the stepper motor

What are you trying to do? If you really want to do a single rotation at power up, move your stepper code into setup. I'd guess that there's going to be more to come though.