Updated gitignore

Don't commit changes do prefs,class and other auto-generated files.