-@major Added simple (nontested) version of state.py and statemanager.py