Updated README.md
Final refactoring. Added comments.