Writes to file after edit as well as add
Completing tasks is done, except sorting breaks it so now sorting is disabled.