finished docs for client and server