Document all public functions/templates with minor re-ordering.