Improved exporting and footnote functions. It is now possible to export set of selections from the text with footnotes included in the correct section.