Fixed a problem with certain ranges of segment angles (lerp vs slerp). Added ray debug rendering.