Added documentation of the communication protocol.