Added main routine, used for plotting CV spectra and getting Ritter/SDSS stats