links generating from top to bottom. agerage mean lines working, connect end point working
default connectEndPoint set to true