changed bam/sam file reader to lenient error checking