code now better handles bam files with no alignments
added header lines to error file and made format more bamcheck like