fix bugs and add README.md