check in changes from genes development branch : extensive changes to moments calculation, psf model generation, aperture residuals