Auto generate table of contents. As seen on http://www.pebbleroad.com/perspectives/metadata-collection-strategies