proper markdown, spelling errors

Updated with proper Markdown markup and PHP syntax highlighting. Fixed a spelling error or two.