issue #401 + consolidation of thresholding. Control over smoothing before thresholding. Separate serialization and versioning of thresholding measurements. Better organization of settings + automatic thresholding choice for simple mode.