Events documentation

With example (for #9)