First, do not use the
Master Documents "Feature" in Microsoft Word.
Are your commentaries separate documents? If so, just keep them that way.
When done, save each as pdf and concatenate the pdf files.
Alternatively, have the main text and commentaries in separate Word
Sections. Restart your footnote numbering at the beginning of each section and set your endnotes to be at the end of each section and restart numbering.