Added more files types to .gitignore
Fixed the issue of files being put in incorrect directories.  The swapExt method resets the file path to be in the working directory, which is a surprising behavior.