added first files
added connectedends feature to combinePath function