cleanup swapfile and appended .gitignore