Removed whitespaces infront of colons, added space after function's braces and before the opening curly brace, other formatting changes.
Merge pull request #468 from lucho870601/gh-pages

Removed white spaces infront of colons and other minor formatting fixes in chapter 6