Cleaned up the programme -although not completely- added useful features such as stop via refnum for PI motors, and stopped reading position of steppers while command was being issued to avoid collisions. Hopefully this will make a difference for reliability .. wait and see.