Added docs for listening to events.