Updated documentation for new interface for encoding.