GZIP compression pains

plus small edits
Extern to intern files