Modified many files, so that links work and made many other changes.