Finished part 1, need to test.

Added method clear to SensorData, added two new methods to When average
filtering.