Add possible events to documentation

Fixes #2.
Improve tests