updated more of the logistic regression and mutation code