Added documentation and licensing
Merge pull request #6 from agabani/Documentation-and-Refactoring

Added documentation and licensing