Fixing some comments
Adding custom events.

The custom events can be used to modify the output of the protocol.
Updating the plugin to v1.1