Updated documentation

Added info about events.