Cleaned up code. Made minimum elevations more consistent -- minimum elevations now always take the value of the downstream maximum, if possible. Found a couple occasions where elevCheck flag should have been assigned, but wasn't. Hopefully this will cure both the problem with lake tributaries not being assigned as well as the occasional discontinuous elevation profile.