Fix doc-strings and formatting.