added model and code for footnotes, #15