Update events.rst

Added example for event-handler-registration.
Merge pull request #194 from ida27/master

Updated docs