Updated README.md
Refactored and added documentation