Use class_exists(), rather than file_exists()

class_exists() can be made to suppress its normal attempt to open a
file of the matching name.
Minor code and comment format changes
Modernize comment style
Support term-less requests, showing a term list instead

Per #421.