A software package in geometrical optics