Removed usage of goto while maintaining the same logic, replace
system(gzip) with IO::Compress::Gzip and File::Spec to allow the
distribution to run in other OS than UNIX-like ones, added some tests
names to write.t
Merge pull request #2 from glasswalk3r/master

Small refactoring