Wrote Encoder testing program

Also improved api and updated config.