fixed bugs and update readme.md