Updated Arduino code. Should be working flawlessly

Integrated a library to host all the background functions. Working on
adding eeprom to the code to store how long it has been in use.