Created several functions on calculus (pr and power_over_ppeak have a
known bug). Created tools.aggregate_values