Commented code and wrote README.md.