Cleaned code and redid rotary encoder readings.