cleaned up code removing redundancies and fixing broken code. main needs to be moved. I also included the arduino sketch I use to collect data from the nunchuck