including baseline correction as well as ploting