set the reference before opening bams
set the reference before opening bams

see if we can only set the cram ref if the file has the cram ending

adds reset for a mix of bams and crams

added debug statements

ekg/freebayes,ekg/freebayes,ekg/freebayes,ekg/freebayes,ekg/freebayes