changed 'todo' and 'success' to 'tasks'

- code: -1, don't do; 0, failed; 1, to do; 2, success