I came across an excellent tutorial on stepper motors at
http://www.cs.uiowa.edu/~jones/step/#abstract
This goes into the theory of how steppers work, some math for those who can be bothered, and contains some excellent material on controlling and driving steppers. If you need to get up to speed on steppers, this is well worth a look.