Fixed footnotes, plus more fixes.