misc fixes / improvements

string.equals bugfix, add .gitignore, add some generics