Rewrote readwrite so that it saves with indentation. When reading file, if any error in format. Throws away the task.