Added zlib compression in serialize/deserialize methods, reduces the size of the serial string to be transmitted.