added corrections for airmass, error message for make_flats if no _sub
found