Fix formatting of documentation comments.
Better error message for invalid SHA string.