Fixed a bug that would cause weightedAverage not to get set under certain conditions, as well as gave the parameter to make_plots a name that is actually informative as to what it does.