added gzip support for extracting training archive datasets