add a .gitignore
tweak generics hack to make it work in a newer java compiler