Remove swap file and add .gitignore