cleaned up code not relevant to RPi-gpio functionality