Corrected some data processing things. Data will only be
recorded if the measurement has gone up from the previous measurment.
Also the timestamps that were being recorded were advanced by one. I corrected
this.