Add attaching and detaching event subscribers to the docs
Merge pull request #906 from richardmiller/docs-attaching-event-subscriber

Add attaching and detaching event subscribers to the docs