Add PubSub support and documentation