Some more improvement to the protocol. Almost ready to send files over the network