fixed overflow in WeightedMeanVar; plotting script multi-threaded