Added LZHS checksum check
Moved str decoding to separate lib