changed the dictionary of absent refs into a list of dictionaries and sorted them by line number
refactored footnote insert searching into a function, about to add a new function that will look for unmatched text items e.g.
[^footnote]: I'm footnote text with no footnote inserted.
Now checks for orphaned footnote text items. If the list is huge the dialogue is not manageable, which needs to be fixed.