Doxygen comments for base.Encoder and ArithmeticEncoder

Continuing work for #526.