Comment loading. Improved debugging

Beginnings of comment loading. Doesn't seem to limit properly.
Fixed comment loading and template caching.