DOC: minor fixes to examples in documentation

Here is a PR for  two minor documentation fixes.

regards,
 Matthias