Implementation calibration

Implementation of calibration for density fields
Deletion of obsolete functions