fixed bugs. updated readme.md