Added to ncedit.f90 the variable of watertave (flag = 7) and fixed a couple of bugs