Also, that link to the motor model is for an armature controlled DC motor. I haven't found the model work-up for a stepper yet.