Updated README.md and clarified code comments