Index: trunk/ppImage/src/ppImage.h
===================================================================
--- trunk/ppImage/src/ppImage.h	(revision 7508)
+++ trunk/ppImage/src/ppImage.h	(revision 7522)
@@ -7,5 +7,4 @@
 #include "psphot.h"
 #include "ppImageOptions.h"
-#include "ppMem.h"
 
 #define RECIPE_NAME "PHASE2"            // Name of the recipe to use
@@ -13,14 +12,17 @@
 
 // Get the configuration
-pmConfig *ppImageConfig(int *argc, char **argv);
+pmConfig *ppImageArguments(int *argc, char **argv);
 
 // Determine what type of camera, and initialise
-bool ppImageParseDetrend(ppImageOptions *options, pmConfig *config);
+ppImageOptions *ppImageParseCamera(pmConfig *config);
 
 // Loop over the input
-bool ppImageLoop(ppImageOptions *options, pmConfig *config);
+bool ppImageLoop(pmConfig *config, ppImageOptions *options);
+
+// free memory, check for leaks
+void ppImageCleanup (pmConfig *config, ppImageOptions *options);
 
 // perform the detrend analysis on the current readout
-bool ppImageDetrendReadout (ppImageOptions *options, pmConfig *config, pmFPAview *view);
+bool ppImageDetrendReadout (pmConfig *config, ppImageOptions *options, pmFPAview *view);
 
 bool ppImageDetrendBias(pmReadout *inputReadout, pmReadout *bias, pmReadout *dark, ppImageOptions *options);
@@ -35,3 +37,3 @@
 bool ppImagePhotom (pmConfig *config, pmFPAview *view);
 
-#endif // Pau.
+#endif
