Fix plugin example

 * fix constuctor
 * disable output buffering so that events get logged immediately
 * add a new line to log messages for readability
Add config to example command line

Otherwise the example plugin won't start
Merge pull request #550 from amarandon/fix_plugin_doc

Fix plugin doc