Markup fixed, links checked, rebuilt

Also ran test() and document() anew.