First apparently successful pass at reading MDATA files.