Add caption to class detail pages

Closes #131