Add license header and minor changes in pom.xml