add comments to client.c and server.c