comment indexes
remove return
throw error if replication failed, and user did not provide a callback
refactor replication tests to actually use networking
tidy