more smaller fixes, while testing and checking all examples
Merge pull request #141 from tpaviot/jf/examples-cleanup

more smaller fixes, while testing and checking all examples