Added code comments and content to README.md