Added license header to every file and a checking routine to pom.