Updated doctests for protocol modules and sync client.