Index: trunk/ppImage/src/ppImage.c
===================================================================
--- trunk/ppImage/src/ppImage.c	(revision 5857)
+++ trunk/ppImage/src/ppImage.c	(revision 5858)
@@ -5,23 +5,21 @@
     ppData data;
     ppConfig config;
-    ppRecipe options;
+    ppOptions options;
 
     psTimerStart("phase2");
 
     // Parse the configuration and arguments
-    ppConfigLoad (&config, argc, argv);
+    ppImageConfig (&config, argc, argv);
 
     // Open the input image, output image, output mask
     // Get camera configuration from header if not already defined
     // Construct camera in preparation for reading
-    ppDataLoadMeta (&data, &config, argv);
+    ppImageParseCamera (&data, &config, argv);
 
     // Set various tasks (define optional operations)
-    ppRecipeInit (&options, &config)
+    ppImageOptions (&data, &options, &config);
 
-    // Read in the input pixels
-    // Generate mask and weight frame
-    // Read in detrend pixels
-    ppDataLoadPixels (&data, &options, &config);
+    // open detrend images, load headers, optionally load pixels
+    ppImageParseDetrend (&data, &options, &config);
 
     // Image Arithmetic Loop
@@ -29,5 +27,5 @@
 
     // output options
-    ppImageOutput (&data, &options, &config);
+    // ppImageOutput (&data, &options, &config);
 
     exit (0);
