Read me information updated
Refactored code to meet DRY.

Added comments to functions for a better understanding
Change from GPL to MIT license