adding option for phase mismatch to be an optical element instead of a hdulist
added congrid, and debugging