Commenting and code cleanup

Known problems:
-Javascript network display needs to be added as a resource.
-Adventurous Reader behaviors cause errors when TOC doesn't exist.