Added pub/sub to sample docs