Added a description for the code for the output, and moved delte shadowRay