Added measurement to the specimen edit function

Also created a couple of functions to support this