Delete swap files and add gitignore file.