Modified todo.php to add a file open function that allows appendto the current array