Added encode/decode options
Merge pull request #21 from t-k/add_encoder_option

Added encode/decode options