added gnuplot plotting