Added Events to Machine

* Event data is the state ids
Removed onEnter