Speed up reading to-do file, added extra error checking