added cancelTask method

- added cancelTask method
- fixed a few typos