fixed comments for encode/decode

Fixes #81