The Ray class is modified and documented