Added stop method and more

- added stop method
- fixed reset method
- improved demo to include stop, reset, callback and code visualization