Index: /branches/eam_branches/ipp-20121219/ippToPsps/jython/batch.py
===================================================================
--- /branches/eam_branches/ipp-20121219/ippToPsps/jython/batch.py	(revision 34925)
+++ /branches/eam_branches/ipp-20121219/ippToPsps/jython/batch.py	(revision 34926)
@@ -64,5 +64,5 @@
             # now check that the fits header is readable
             if not self.header: 
-                logger.errorPair("Could not read FITS for id", "%d" % id)
+                logger.errorPair("Could not read FITS PHU for id", "%d" % id)
                 raise
 
Index: /branches/eam_branches/ipp-20121219/ippToPsps/jython/detectionbatch.py
===================================================================
--- /branches/eam_branches/ipp-20121219/ippToPsps/jython/detectionbatch.py	(revision 34925)
+++ /branches/eam_branches/ipp-20121219/ippToPsps/jython/detectionbatch.py	(revision 34926)
@@ -89,5 +89,5 @@
        #self.endY = 8
 
-       # get a fre primary header values. if in test mode, then use defaults
+       # get a few primary header values. if in test mode, then use defaults
        if self.safeDictionaryAccessWithDefault(self.header, 'MJD-OBS', "1") == "NULL":
            self.logger.errorPair("Could not get", "MJD-OBS")
@@ -234,5 +234,5 @@
         except: pass
 
-        # insert all detections into table
+        # insert image metadata into table
         sql = "INSERT INTO " + tableName + " ( \
                frameID \
@@ -386,5 +386,5 @@
         except: pass
        
-        # delete all detections with PSF_INST_MAG < 17.5, as decreed by Gene
+        # delete all detections with PSF_INST_MAG < -17.5, as decreed by Gene
         BEFORE = self.scratchDb.getRowCount(ippTableName)
         #don't do this anymore
Index: /branches/eam_branches/ipp-20121219/ippToPsps/jython/loader.py
===================================================================
--- /branches/eam_branches/ipp-20121219/ippToPsps/jython/loader.py	(revision 34925)
+++ /branches/eam_branches/ipp-20121219/ippToPsps/jython/loader.py	(revision 34926)
@@ -141,4 +141,6 @@
                     ids = self.ippToPspsDb.getPendingIdsForThisBox(boxId, batchType)
                 
+                    # ids are the stage_ids for items to be processed (eg, stack_id for a stack CMF, cam_id for P2 smf)
+
                     if len(ids) < 1: 
                         self.logger.debugPair("No " + batchType + " items found in this box", "skipping")
@@ -162,5 +164,9 @@
                         self.logger.infoPair("DVO to be ingested", "%.1f GB" % sizeToBeIngested)
                         self.logger.infoPair("smfs-per-GB", "%.1f" % smfsPerGB)
+
                         # should do we pre-ingest stuff from DVO?
+                        # NOTE EAM : this chunk loads the dvo detections into the mysql db
+                        # XXXX EAM : this should happen for both P2 and Stack detection
+                        # XXXX EAM : in parallel model, this should happen for all P2 & Stack batches
                         if batchType == 'P2' and smfsPerGB > 30:
                             if not self.dvoDetections.sync():
@@ -170,4 +176,7 @@
                             useFullTables = 1
                 
+                    '''
+                    NOTE EAM : "TheseItems" refers to each of the stack CMFs, camera SMFs, or object batches
+                    '''
                     self.logger.infoBool("Using pre-ingested DVO data?", useFullTables)
                     if not self.processTheseItems(batchType, ids, useFullTables):
