Added simple makefile. Made encoder calculate bytes and free up its memory.
Added support for clearing the dictionary.