Fixed the example; did use a non-existent stopping criterion.
Merge pull request #2 from m0r17z/master

fixed the example as it did use a non-existent stopping criterion.