Table of contents insertion - started coding

TOC code not finished - pushing to transfer code to another computer