Fix pom.xml to use java 1.7
Remove unnecessary imports