Document how to use events

Fixes #16