Refactored measure.label, added documentation.