change the events in client and server, finish the unit test, finish doc. in Readme