Finished pubsub. Renamed examples to make it clearer what is tested there.