Massive refactor to use state machine structure throughout
Updating README examples