Fixed leaks and other memory wizardry.
Working with everyone's files.
It should still need a test to check if it is working when you need an aditional link block.