histfactory: write_measurement improvements and docs
Merge pull request #439 from ndawe/master

histfactory: write_measurement improvements and docs