Updated event system

Removed deprecated createEvent calls and replaced with Event
constructors.