Added read method for custom h5 files