Added stop method and more

- added stop method
- fixed reset method
- improved demo to include stop, reset, callback and code visualization
Merge branch 'master' into gh-pages