adding auto footnotes maker
fixing up footnotes.R