Lot of change! add node features, improved gap selection and gap closing
algorithm