dem_adjust: Documentation and robustness checks