set java version to 1.7 and add .gitignore