Commented code, added some minor information to readme.md.