File permissions maintained when compressing and decompressing

These edits fix issue #60, now allowing file permissions such as executable (e.g. 777 or 644) to be maintained when compressing and decompressing files.