Fixing deadlinks

There were various bad references that have now been resolved.