Working on moving lzwencoder to process streams instead of whole buffers
Split off main function from code that does the compression. All necessary variables are stored in structure. There is a known issue that if the size of the output gets larger than 100, there will be memory corruption.