Add doxygen and constify some things.