Main File of Analysis Routines for PhotoZ