Attempt at Table of Contents generator.