backlight working, io, cleaned up code