Fix/improve some docstrings in the replication code.