Added event definition.
Added basic types.
Cleaned up object to event.