Refactor ToC generation code to make it re-useable
Allow S&R funcs to specify they would like to be called once after all matches are found
...
An example showing how to use function mode to auto create a Table of Contents