I justed modified the code so that a new window will popup when you click the arrow of laser pointer or click the check box labeled "table".
You can change the angle with slider or text field.

I also add a table to show a list of (x,y,I) which represent all rays (include  reflected ray and refracted ray).
You should be able to find which one is reflected ray, which one is refracted ray from intensity.