corrected examples in root folder
some more fixes to examples
Merge pull request #1178 from qreal/examples

Examples