better enforcement of id's, and renamed onPause/onResume to startMeasuring/stopMeasuing to make their usage more clear