Added an exception type
Added a singleton template class
Added some tests files
Beginning of the State System
Minor Fixes