correction for tutorial docs code
more tutorial code changes

another change to accompany #122 and #105
Merge pull request #122 from boorad/master

correction for tutorial docs code