field and raster pupil routines added for ray aiming