Improved pub/sub example

This pull request make much more easy copy/paste development.
Merge pull request #92 from firstrow/patch-1

Improved pub/sub example