Add some more documentaion to the encoding/decoding function interface.