Takinf into account that file names could have prefixes separated by dots that is necessary to ignore to identify its type.
Added the capture of value error when calculating statistics of bias files.
Controlling the existence of bias and flats file when reducing and added another value error control.
Added a parameter to indicate if header fields are used to determine the type of the image.