Correction of higher order and chromatic aberrations, wave front measurement and calculation