Documentation fixes.

Resolved code formatting issues, fixed minor typos, general small edits for clarity.

Comment From: tzolov

Thanks for the contribution @mkheck! LGTM