trying to make some improvements to footnotes/endnotes ... a bit better but more work needed!