Changed the file structure.  Moved libraries so they can be more easily compile in Arduino.  Added makefile for easy compilation
Added state table switch statements