Parameter handling now decodes/encode properly

But needs to be documented