adding documentation to encode plugin