IOException removed in saveTasks() 
Some code placements changed