Fixed StateMachine event dispatchinh
Added examples