Changed to Java 1.6 and added pom.xml