add communication protocol, diagram between client and server. fixed #14