Fix links and a bunch of other stuff.