Simple tweaks.
Made some optimizations to the raytracing loop through the magic of precomputation.