Added quality checking functionality. No default value, so if qualthresh is not provided then quality scores are not checked.