Updated syntax, spelling

Added proper Markdown markup, fixed a spelling error or two. Removed unnecessary white space in PHP syntax.