Add license info to gemspec
Refactorings