added folder option to plot class
make plot init function virtual