Fixed one of thse buggy thigns.

Added a TABLE OF CONTENTS generator.