typo in examples, changes in tutorial

Typo in examples and changes in tutorial, to get it working in the current version.