Encoderwork

Fixes #66