Modifications required by contour_model_folding

This modifications are needed by the countour model folding packages, and were
stored there by J. Sindler.