better behaviour with in inserting the footnote text at the EOF and files with no linefeed at the end of the file.