Added event object for context.
Merge pull request #8 from Sam152/master

Added an event object when triggering callbacks to provide context.