Code cleanup and added license on pom files