Renamed --noweights to --weight and made no-weighting the default

Also replaced sum() with the more robust math.fsum in a few places.