add commandline support for flags.
define main pipeline parameters.