Formatted the Arduino code, removed unused variables