added some comments and updated README.md