Index: /trunk/doc/ipptools/dettool.txt
===================================================================
--- /trunk/doc/ipptools/dettool.txt	(revision 8398)
+++ /trunk/doc/ipptools/dettool.txt	(revision 8399)
@@ -94,10 +94,12 @@
 imfiles.  These are used for the stacking:
 
-	ppMerge <stacked_uri> <in_uri> <in_uri> <in_uri> .... -recipe PPMERGE <ppMerge_recipe>
+	ppMerge <stacked_uri> <in_uri> <in_uri> <in_uri> .... -recipe PPMERGE <ppMerge_recipe> -stat STAT_FILE
+
+ppMerge returns statistics of the stack in the STAT_FILE.
 
 Once the stack has been completed, "dettool -addstacked" adds a
 stacked class_id and and optionally marks it for normalization:
 
-	dettool -addstacked [-pleasenormalize] -det_id <det_id> -iter <iter> -class_id <class_id> -uri <stacked_uri>
+	dettool -addstacked [-pleasenormalize] -det_id <det_id> -iter <iter> -class_id <class_id> -uri <stacked_uri> -stat <statistic>
 
 The "-pleasenormalize" flag indicates that the normalisation steps are
@@ -128,12 +130,12 @@
 the normalisation:
 
-	ppNormCalc <some parameters>
-
-*** To do: decide input form for ppNorm (likely a metdata config file
-           containing the stats for each imfile).
-
-*** To do: decide output form for ppNorm (likely a metadata config
-	   file containing the normalisation for each class id of the
-	   stack).
+	ppNormCalc INPUT.mdc
+
+where INPUT.mdc is a metadata config file with the stats for each
+imfile.  ppNormCalc outputs to stdout a metadata config format
+with the normalisation for each class id.
+
+*** To do: Get rms of solution (for both gain and exposure level) out
+	   of ppNormCalc.
 
 Then for each imfile that comprises the stack, we push the normalisations
@@ -159,6 +161,7 @@
 
 which returns a list of imfiles (with corresponding detrend id,
-iteration, class id, uri and normalisation) from detNormStats, which
-have no corresponding class_id inserted into detNormalizedImfile.
+iteration, class id, uri, statistic and normalisation) from
+detNormStats, which have no corresponding class_id inserted into
+detNormalizedImfile.
 
 For each imfile, we apply the normalisation:
