code cleanup, now able to set motor vars