removes motor thread and adds remaining functionality to arduinoThread