now ignores non-fits files

changed the code to ignore non-FITS files in the raw directories.