+Altered main to batch process matrix files
+altered lbfgs to throw an exception if f evalutes to a NaN value.
+decreased the number of internal values recorded to save disk space