footnotes function

Adds a footnote block