Moved code handling into LzwCodeTable class. Created IEncoderInput interface through which the encoder reads input characters. Created IEncoderOutput interface through which the encoder writes the resulting codes.