bug concerning mixing length calculation in case of negative f removed; inconsistencies concerning variable grid removed