Restore most sections to doxygen layout.

In #234, we realized we want protected member functions to show up in doxygen. To do this, I restored most of the original doxygen layout. I'm happy to discuss with @jimmyDunne and others what we should reveal in doxygen.