Document parameters for all classes, and variables used by templates

This adds documentation of *all* class params, as well as doc blocks at the top of classes that didn't already have them. I've also added a "Template Uses" doc section before each template.