Added code blocks

Hi Andrew,
Some important parts of coding were not being shown because I didn't properly include them into code blocks (~~~ stuff ~~~).

I just fixed that.
Merge pull request #2 from muela/patch-2

Added code blocks