near final state machine code
updated readme
Merge branch 'feature/implement_state_and_statemachine' into develop