changes to debug mode
motor test functions