Updated to build on latest version of Arduino IDE

Had to rename main.h/.cpp as it seems that the naming causes the Arduino IDE to not compile a main function.