Major refactoring
Updated the readme and added the lisence