Adapted to new type reading
Decompressed data size check
Updated vardata to store only the integer ID