introduced plot smooth argument to average over datasets