write to measurements.txt added