Adds support for gzipped data. Should fix #1 (no error so far)