Footnote insertion basically working