Commented stuff and written some javadoc.
Spotted a bug in the end of transmission: nothing serious, it's just
that the client may never stop sending the last EOB because the EOB_ACK
of the server was lost and the server shut down correctly. There's a
good idea as a TODO in the client so nothing to worry about