Added documentation for new Encoder interface