Added Kiss encoder and refactored out Kiss constants.