Minor doc fixes

I made some minor fixes to the documentation.
Changes are either removing erroneous characters or fixing syntax errors in the code examples within the documentation (that was blocking the syntax highlighting.)