Started decoder rearch
Reworked option parser to work with unit tests