Adds and corrects links.