Updated docs

Added example for event-handler-registration.