added a unitize function (and divide) so that the magnitude of the direc...

...tion of the Ray will be equal to 1.