Add stages flowchart
Update function names in ray_tracer.js
Editing CPS chapter