fix some bugs and modified README.md