fix bugs when calling ToggleComplete on a non-task line
add cancelTasks function
add insertSeparator function