Added State Machinery
Merge pull request #3 from stateio/add_state_machinery

Added State Machinery