set up read and diff files to allow returing dictionary or not (return_dict=True)