ToDo.txt

Improve error checking