Added optimization flag (-O2) for compilation, which was missed earlier.
Added simple gnuplot script to generate plot from txt files.