Add documentation for network protocol