Minor docs enhancements and code formatting

Just minor docs edits, a couple of formatting edits throughout the code.
Error messages do not end with `.`