Refactoring of pom.xml, added license

Refactored pom.xml, added licences into all java files, removed file in META-INF.