Index: /branches/eam_branches/ipp-20150625/Ohana/src/addstar/Makefile
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/addstar/Makefile	(revision 38615)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/addstar/Makefile	(revision 38616)
@@ -39,5 +39,5 @@
 # programs in 'SERVER' use the client-server concept and are out of date
 
-INSTALL = addstar sedstar loadgalphot loadstarpar loadstarpar_client loadICRF loadICRF_client load2mass loadwise loadtycho loadsupercos skycells mkcmf dumpskycells findskycell
+INSTALL = addstar sedstar loadstarpar loadstarpar_client loadICRF loadICRF_client load2mass loadwise loadtycho loadsupercos skycells mkcmf dumpskycells findskycell
 SERVER  = addstar_client addstarc addstard addstart
 
Index: /branches/eam_branches/ipp-20150625/Ohana/src/addstar/src/loadgalphot_readstars.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/addstar/src/loadgalphot_readstars.c	(revision 38615)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/addstar/src/loadgalphot_readstars.c	(revision 38616)
@@ -231,5 +231,5 @@
     stars[i].galphot.modelType = MODEL_TYPE_gal[i];
     stars[i].galphot.detID     = ID_gal[i];
-    stars[i].galphot.phtocode  = options->photcode;
+    stars[i].galphot.photcode  = options->photcode;
 
     // I have a grid of measurements with (Flux, dFlux, Chisq) at each point
Index: /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvoverify.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvoverify.c	(revision 38615)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvoverify.c	(revision 38616)
@@ -78,6 +78,6 @@
   SkyListFree (skylist);
 
-  ohana_memcheck (TRUE);
-  ohana_memdump (TRUE);
+  ohana_memcheck (VERBOSE);
+  ohana_memdump (VERBOSE);
   exit (0);
 }
Index: /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvoverify_args.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvoverify_args.c	(revision 38615)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvoverify_args.c	(revision 38616)
@@ -50,6 +50,6 @@
     free (filename);
 
-    ohana_memcheck (TRUE);
-    ohana_memdump (TRUE);
+    ohana_memcheck (VERBOSE);
+    ohana_memdump (VERBOSE);
 
     if (!isGood) exit (1);
Index: /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvoverify_utils.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvoverify_utils.c	(revision 38615)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvoverify_utils.c	(revision 38616)
@@ -312,27 +312,44 @@
   // check measure <-> average links
   {
-    int objIDsOK = TRUE;
-    int catIDsOK = TRUE;
-    int averefOK = TRUE;
+    int NobjIDsBAD = 0;
+    int NcatIDsBAD = 0;
+    int NaverefBAD = 0;
 
     for (i = 0; i < catalog.Naverage; i++) {
       m = catalog.average[i].measureOffset;
       for (j = 0; j < catalog.average[i].Nmeasure; j++) {
-	objIDsOK &= (catalog.average[i].objID == catalog.measure[m+j].objID);
-	catIDsOK &= (catalog.average[i].catID == catalog.measure[m+j].catID);
-	averefOK &= (catalog.measure[m+j].averef == i);
+	if (catalog.average[i].objID != catalog.measure[m+j].objID) {
+	  NobjIDsBAD ++;
+
+	  // check if objID matches R,D
+	  int iTest = catalog.measure[m+j].objID;
+	  if (catalog.average[iTest].objID == iTest) {
+	    double dR = 3600.0*(catalog.average[iTest].R - catalog.measure[m+j].R) * cos (RAD_DEG*catalog.measure[m+j].D);
+	    double dD = 3600.0*(catalog.average[iTest].D - catalog.measure[m+j].D);
+	    double dRad = hypot (dR, dD);
+	    fprintf (stderr, "matches ave %d = %d, %f, %f = %f\n", iTest, catalog.measure[m+j].objID, dR, dD, dRad);
+	  } else {
+	    fprintf (stderr, "cannot find averef\n");
+	  }
+	}
+	if (catalog.average[i].catID != catalog.measure[m+j].catID) {
+	  NcatIDsBAD ++;
+	}
+	if (catalog.measure[m+j].averef != i) {
+	  NaverefBAD ++;
+	}
       }
     }
     
-    if (!objIDsOK) {
-      fprintf (stderr, "ERROR: catalog %s has invalid obj IDs\n", catalog.filename);
-      status = FALSE;
-    }
-    if (!catIDsOK) {
-      fprintf (stderr, "ERROR: catalog %s has invalid cat IDs\n", catalog.filename);
-      status = FALSE;
-    }
-    if (!averefOK) {
-      fprintf (stderr, "ERROR: catalog %s has invalid averef values\n", catalog.filename);
+    if (NobjIDsBAD) {
+      fprintf (stderr, "ERROR: catalog %s has %d invalid obj IDs\n", catalog.filename, NobjIDsBAD);
+      status = FALSE;
+    }
+    if (NcatIDsBAD) {
+      fprintf (stderr, "ERROR: catalog %s has %d invalid cat IDs\n", catalog.filename, NcatIDsBAD);
+      status = FALSE;
+    }
+    if (NaverefBAD) {
+      fprintf (stderr, "ERROR: catalog %s has %d invalid averef values\n", catalog.filename, NaverefBAD);
       status = FALSE;
     }
Index: /branches/eam_branches/ipp-20150625/Ohana/src/libohana/src/ohana_allocate.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/libohana/src/ohana_allocate.c	(revision 38615)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/libohana/src/ohana_allocate.c	(revision 38616)
@@ -265,8 +265,8 @@
 }
 
-int ohana_memcheck_func (int allmemory) {
+int ohana_memcheck_func (int VERBOSE) {
 
   if (!lastBlock) {
-    fprintf (stderr, "no memory allocated\n");
+    if (VERBOSE) fprintf (stderr, "no memory allocated\n");
   }
 
@@ -308,5 +308,9 @@
     thisBlock = thisBlock->prevBlock;
   }
-  fprintf (stderr, "%zd memory blocks allocated (%zd bytes total), %zd good, %zd bad\n", Ntotal, Nbytes, Ngood, Nbad);
+
+  if (Ntotal || VERBOSE) {
+    fprintf (stderr, "%zd memory blocks allocated (%zd bytes total), %zd good, %zd bad\n", Ntotal, Nbytes, Ngood, Nbad);
+  }
+
   if (Nbad) status = FALSE;
 
@@ -356,5 +360,9 @@
     thisBlock = thisBlock->prevBlock;
   }
-  fprintf (stderr, "%zd memory blocks freed     (%zd bytes total), %zd good, %zd bad\n", Ntotal_free, Nbytes_free, Ngood_free, Nbad_free);
+
+  if (Ntotal_free || VERBOSE) {
+    fprintf (stderr, "%zd memory blocks freed     (%zd bytes total), %zd good, %zd bad\n", Ntotal_free, Nbytes_free, Ngood_free, Nbad_free);
+  }
+
   if (Nbad_free) status = FALSE;
 
@@ -405,5 +413,9 @@
     thisBlock = thisBlock->prevBlock;
   }
-  fprintf (stderr, "%zd memory blocks dropped   (%zd bytes total), %zd good, %zd bad\n", Ntotal_drop, Nbytes_drop, Ngood_drop, Nbad_drop);
+
+  if (Ntotal_drop || VERBOSE) {
+    fprintf (stderr, "%zd memory blocks dropped   (%zd bytes total), %zd good, %zd bad\n", Ntotal_drop, Nbytes_drop, Ngood_drop, Nbad_drop);
+  }
+
   if (Nbad_drop) status = FALSE;
 # endif
@@ -412,8 +424,8 @@
 }
 
-void ohana_memdump_func (int allmemory) {
+void ohana_memdump_func (int VERBOSE) {
 
   if (!lastBlock) {
-    fprintf (stderr, "no memory allocated\n");
+    if (VERBOSE) fprintf (stderr, "no memory allocated\n");
     return;
   }
@@ -452,5 +464,8 @@
     thisBlock = thisBlock->prevBlock;
   }
-  fprintf (stderr, "%zd memory blocks allocated (%zd bytes total)\n", Ntotal, Nbytes);
+
+  if (Ntotal || VERBOSE) {
+    fprintf (stderr, "%zd memory blocks allocated (%zd bytes total)\n", Ntotal, Nbytes);
+  }
 
   return;
Index: /branches/eam_branches/ipp-20150625/Ohana/src/relastro/Makefile
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/relastro/Makefile	(revision 38615)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/relastro/Makefile	(revision 38616)
@@ -20,5 +20,7 @@
 relastro_client: $(BIN)/relastro_client.$(ARCH)
 
-install: $(DESTBIN)/relastro $(DESTBIN)/relastro_client $(DESTBIN)/testparallax
+install: $(DESTBIN)/relastro $(DESTBIN)/relastro_client 
+
+# $(DESTBIN)/testparallax
 
 RELASTRO = \
