Accelstepper function

I tried already works a treat. Thanks a lot