added first version of runlength decoding