Added additional logic, mime type check, and upload error check functions for todo list.
Cleaned up syntax around saving list to file on todo_list.php