Code for fitting redshifts to DEEP2/DEIMOS spectra and quality checking - early "unofficial" version used in first semester of DEEP2