added a commandline option to specify the folder path where the plots should be stored