Refactoring and added license to pom.
Added distributionmanagement.