Command line arguments and gnuplot integration

Pulled out configuration options to command line arguments.
Integrated gnuplot heatmap generation.