update README.md and fix bugs