fix some bugs and edit README.md.