Added Some debug features, trying to fix bug with removing nodes.
Cleared up issue with duplicate links, still haven't solved the issues with links ot being removed when their psts are removed.