Modified readme.md and fixed bugs.