Thanks for the code at top of this site!
I will improve the stepper library a little bit to include acceleration and deceleration and also allow a higher max. velocity. At the moment only 300rmp possible at a stepper with 200 steps because using delay() . The name of the new library will be "StepperHQ".
Thomas