I have updated the code to allow the user to pass a what ever number of file formats they wish to look for in a folder.
I have changed how exclusions are done. Rather than a multi-boolean if statement it now iderates over an array with the exclusions as it's positions.