changing back to pure Lambda iteration just to see if it works
renamed a missed ambiguous iterator name "ray"
fixed index error in calc_J
removed debugging print statement
removed plot of initial guess of J
made function import more specific instead of using wildcard