Added method to update direction on the Arduino, and reworked arduino code to allow for this.