implement Kahan summation; tackle some long standing TODOs