Check MAPQ/Phred threshold for validity and fixed a bug in getStrand.