Fix documentation issues.
Add doxygen documentation.