Modifications to data.Archive

More accurate capturing of local maxima and minima.
Increase threshold to improve filtering.
Update to PID controller

Modified to keep a sum of the integral over time, as expected for a PID
controller.