added more arguments, plus gnuplot script