function for rpinting data added (it may be used in drawing a graph in gnuplot
usage changed