Adding the checkSamOrBam format in the addInfoHeader function in toolbox