use constants for encode/decode mode.
make ENCODE_FINISH a flag also.
test actual compression.
add a real README.