* converted to optparse-applicative
* add base directory to outputs
* minor code moves/renames