bug fixes in example code
remove uneccessary whitespace
Merge pull request #26 from yotta/master

Bugfixes in Chapter 3 example code.