changed if for useUB so that if variable is not set yet it doenst trigger
added some comments
treament train now works with all links
if you import a file which is alread in workpath, no delete and importing again anymore
delete unused code