Add gitignore and remove preference files