Further enlightenment on CSD code. Added smoothing

Boxcar method