Improving readme.
Cleaned encoding code.