Added advertise and publish functions and basic usage example
Merge pull request #3 from Wedontplay/master

Added advertise and publish functions and basic usage example