Documentation, and sim should be mathematically correct, although I believe that mass attenuation conversion to length is still incorrect.