[doc,duim] Fix a variety of formatting issues.