Formatted code parts

I formatted the code blocks and substituted the tab by four spaces.
Merge pull request #2 from qbi/patch-1

Formatted code parts