Switching to MIT license: remove GPL
More license stuff
Better error managing