small modifications to accomodate new results class (solveReal) and new weights for variances (getS)