Almost there, just modify task based on line and type
Back to working
Fix modifyTask and extractTasks