Added documentation and updated README.md