FIX: XML to gnuplot bugs
Added global defines and progress indicator