take dict of config arguments in addition to command line for easier use...

... as module
Please re-add the "profile" parameter