Change some comments to code comments rather than user comments.
Wordsmith some comments.
Extracted Mock._errors() in order to simplify the mock() function.
Rename and reorder various methods.