changed 'complete' event in stop() to 'cancel'

- changed 'complete' event in stop() to 'cancel'
- some minor fixes, formatting :\