Fix document syntax errors, and format Adjustments