Rayleigh Scattering code update
Scattering code changes.