Move dirty functions to new class Decoder.
Add new class LanguageModel.
Add new class Vocabulary.