fixed potential error
added a gzip implementation
got gunzip to work
fixed a few things up in relation to gunzip