Encoder example
Mostly working encoder example
Update readme