Tables now fold correctly

(Table folding is where multiple columns are combined into one through
interleaving)
Added rudimentary footnote support