Update docs
Refactor events.