fix docs and type names in pubsub