implement send function

* implement sendMsg and send function.
* improve document