Updated header files and fixed a few delcarations so arduino verifies
the code now.