Raytracer mk.I: update with more comments & minor optimization