Cleanup of raytracing.cpp