Changing all exit calls to throws, and changing bad file names to be excluded rather than cause a problem (so things like additional directories, notes, .svn folders, etc, will not cause issue)