fix some bugs, improve documentations