Added stepping to the AgentHandler
Replace spaces with tabs
Added some if block functionality and a State Model