Included gnuplot functionality and tried to get to ANSI C++ standards.