Fixed scattering bug, added sphere testing mode.
Fixed documentation error.