add decoding of length-distance pair
decoding of length-distance pair
some fixes