adding preferences and .gitignore