added cython los
removed function argument iDim
removed iDim from createRay function call