Made some improvements to the CPU ray tracer. Code has gotten quite a bit simpler.
Might look into porting it to the GPU soon.