fixed line 82 in gradientControl.r -- Should hopefully work now. Even if it works, we may want to revisit the problem of lake elevations propogating in chains of lakes--sometimes these chains of lakes have high-head dams. If elevations are propogated through chains of lakes, tribs of upstream lakes will have artificially high gradients.