created tools file and seperated gnu_plot_i in header and implementation
file