Implement rough read/write of the new XPK format