adjust linkEndPositions split into two functions, one to adjust one link end, and one to adjust all link ends.
scale x and y values altered.
averageMeanLines changed so that the top line will remain stationary with
drag of any of the bottom half of the mean lines.