added README.md and commented the code