Added raytracer source.
Minor cleanup; fixing static analysis bugs