Created new measService and put MeasurementHistory in its own file in preparation for unit tests. Some comment changes.