Added handling of compressed records and error catching for records that fail to decomply