adding usage of 'this' and 'addEvent' to README

* updating example to use new 'this' and 'addEvent' functions
* cleaning up README whitespace
* move code samples into GH-formatted blocks, for fancy display