Documented the network protocol
- minor fixes in the protocol definition
- added a class for the clients