Fixed compilation errors relating to fix for issue 104

The fix for issue #104 (pull request #106) had a couple of typos and other minor problems.