added pubsub samples. Needs some cleanup but works
added sample file