Added documentation for events.