Fixed typos

Fixed some typos and readability issues. Also applied consistent markup for headings.