small code cleanup in Main and RayTracer