Index: /trunk/psLib/src/astro/psCoord.c
===================================================================
--- /trunk/psLib/src/astro/psCoord.c	(revision 6345)
+++ /trunk/psLib/src/astro/psCoord.c	(revision 6346)
@@ -10,6 +10,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.105 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-01-30 23:42:24 $
+*  @version $Revision: 1.106 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-02-07 23:14:21 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -63,5 +63,4 @@
 XXX: This code no longer makes sense.  The merge must be reviewed.
  *****************************************************************************/
-
 // XXX EAM : below is the code using the standard matrix representation.
 //           note that this inversion requires x->nX == 1, y->nY == 1 and
@@ -205,5 +204,4 @@
 }
 
-// XXX: Verify the order/nterms poly changes
 psPlaneTransform* psPlaneTransformAlloc(int order1, int order2)
 {
@@ -266,5 +264,4 @@
 }
 
-// XXX: Verify the order/nterms poly changes
 psPlaneDistort* psPlaneDistortAlloc(int order1, int order2, int order3, int order4)
 {
@@ -327,4 +324,6 @@
 /******************************************************************************
 XXX: Private Function.
+ 
+XXX: Optimize this.  We don't need a while loop here.
  
 piNormalize(): take an input angle in radians and convert it to the range 0:2*PI.
@@ -867,12 +866,10 @@
     // Solution via LU Decomposition
     //
+    // XXX: Check return codes
+    //
     psVector *permutation = psVectorAlloc(nCoeff, PS_TYPE_F64); // Permutation vector for LU Decomposition
     psImage *luMatrix = psMatrixLUD(NULL, &permutation, matrix); // LU decomposed matrix
     psVector *xSolution = psMatrixLUSolve(NULL, luMatrix, xVector, permutation); // Solution in x
     psVector *ySolution = psMatrixLUSolve(NULL, luMatrix, yVector, permutation); // Solution in y
-
-    //
-    // XXX: Should check the output of the matrix routines and return false if bad.
-    //
 
     //
Index: /trunk/psLib/src/imageops/psImageStats.c
===================================================================
--- /trunk/psLib/src/imageops/psImageStats.c	(revision 6345)
+++ /trunk/psLib/src/imageops/psImageStats.c	(revision 6346)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.89 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-02-02 21:11:13 $
+ *  @version $Revision: 1.90 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-02-07 23:14:21 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -600,7 +600,7 @@
     } else if (coeffs->type == PS_POLYNOMIAL_CHEB) {
         return(p_psImageEvalPolynomialCheb(input, coeffs));
-    }
-    printf("XXX: Error: wrong polynomial type\n");
-    // XXX: psError()
+    } else {
+        psError(PS_ERR_UNKNOWN, false, "Incorrect Polynomial Type.\n");
+    }
     return(NULL);
 }
Index: /trunk/psLib/src/math/psMinimizeLMM.c
===================================================================
--- /trunk/psLib/src/math/psMinimizeLMM.c	(revision 6345)
+++ /trunk/psLib/src/math/psMinimizeLMM.c	(revision 6346)
@@ -10,6 +10,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-02-03 22:05:22 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-02-07 23:14:21 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -513,5 +513,5 @@
 }
 
-// XXX EAM : temporary gauss-jordan solver based on gene's
+// This is a temporary gauss-jordan solver based on gene's
 // version based on the Numerical Recipes version
 bool psGaussJordan(
Index: /trunk/psLib/src/math/psMinimizePowell.c
===================================================================
--- /trunk/psLib/src/math/psMinimizePowell.c	(revision 6345)
+++ /trunk/psLib/src/math/psMinimizePowell.c	(revision 6346)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-02-03 22:05:22 $
+ *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-02-07 23:14:21 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -740,5 +740,5 @@
     psMinimization *min,
     psVector *params,
-    const psVector *paramMask,
+    psMinConstrain *constrain,
     const psArray *coords,
     const psVector *value,
@@ -751,5 +751,5 @@
     Chi2PowellFunc = model;
 
-    return(psMinimizePowell(min, params, paramMask, coords, myPowellChi2Func));
+    return(psMinimizePowell(min, params, constrain->paramMask, coords, myPowellChi2Func));
 }
 
Index: /trunk/psLib/src/math/psMinimizePowell.h
===================================================================
--- /trunk/psLib/src/math/psMinimizePowell.h	(revision 6345)
+++ /trunk/psLib/src/math/psMinimizePowell.h	(revision 6346)
@@ -8,6 +8,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-01-23 20:44:29 $
+ *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-02-07 23:14:21 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -81,5 +81,5 @@
     psMinimization *min,               ///< Minimization specification
     psVector *params,                  ///< "Best guess" for parameters that minimize func
-    const psVector *paramMask,         ///< Parameters to be held fixed by minimizer
+    psMinConstrain *constrain,
     const psArray *coords,             ///< Measurement coordinates
     const psVector *value,             ///< Measured values at the coordinates
Index: /trunk/psLib/test/math/tst_psMinimizePowell.c
===================================================================
--- /trunk/psLib/test/math/tst_psMinimizePowell.c	(revision 6345)
+++ /trunk/psLib/test/math/tst_psMinimizePowell.c	(revision 6346)
@@ -5,4 +5,5 @@
  
     XXX: Must verify the stderr for the NULL parameter tests.
+    XXX: psMinimizeChi2Powell() is untested.
  *****************************************************************************/
 #include <stdio.h>
