Fixed example
Renamed statePtr to StatePtr
Added templated addState so people do not call new on memory they are
not responsible for
Renamed example
Removed some files
updated readme