updated readme.md and fixed minor bugs