Completed port to Arduino

Hi Pete - I believe I've completed the port to Arduino. It should look and act like a normal Arduino sketch now. The header file should support older hardware versions as well but I can't test them. Please test and let me know what you think of the modifications.