Added InflateStream and flush to stream wrapper