Merge pull request #8 from ilvalle/master

Fix type error when stop a task
fixes #9, #10, #11, and a few more bugs