Fixed an old bug in g_isdcalc having to do with variance calculations that I never got around to fixing. Also improved accuracy by switching final summations from reals to doubles. The latter part is not well tested yet.