Stop counting photons that have very large path length, kill them instead
Tighten tolerance on "in sphere"
Implement norm instead of sqrt of squares
When scattering air->sphere, subtract path length travelled in air
Correct scattering at tissue->sphere body interface and don't kill photons that exit tissue outside sphere, reflect them back in.
Apply MATLAB's  auto intending to make code more readable