document a checking procedure for ray-tracer