a few optimizations
gzip version added
Added everything.
few small optimizations