moved AddTask to its own function
added list tasks functionality