Added option to delete links without living a trace on condition steps
Little refactor
Created functions to get links from From or To attribute of links, but it is not going to be used because it is not efficient to call both of them and made the iteration twice when you can do it once