Add preexisting code
Add Encoder library to source tree