Fixed script so it will create an actual newline between endnote entries if '\' is appended in the .tex file.
Temporarily adjusted footnote search pattern to look for up to 3 digits.