Update events.md

making code example make sense and match the comment associated with it
Merge pull request #35 from chadxz/patch-1

Update events.md