added config, plot/stat choice, proper cmd line options