Index: trunk/psphot/src/psphotReadout.c
===================================================================
--- trunk/psphot/src/psphotReadout.c	(revision 10271)
+++ trunk/psphot/src/psphotReadout.c	(revision 10393)
@@ -70,4 +70,7 @@
         return false;
     }
+    // XXX test the plotting function
+    psphotPlotMoments (config, view, sources);
+
     if (!strcasecmp (breakPt, "MOMENTS")) {
         if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;
@@ -117,4 +120,7 @@
     // linear PSF fit to remaining peaks
     psphotEnsemblePSF (readout, sources, recipe, psf, TRUE);
+
+    // XXX test the plotting function
+    psphotPlotPSFModel (config, view, sources);
 
 finish:
@@ -169,4 +175,6 @@
     pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");
 
+    psphotKapaClose ();
+
     psFree (psf);
     psFree (header);
