add thread to messgaeClient
fix formate
collate the code
add interface and remove thread
init README.md
add readme
fix some bugs