Add a class method: GzipInfo.fromfilepath()
Clean up duplicate codes
Improve error messages