Added a whoooole bunch of file types. Also made all the file ending comparisons lower case.