Started work on Beamshaper class. Finished calculation of ray mapping function.