fix broken syntax for reading contents in ext_storage and refactor driver to remove variables named 'file'