Newrelic-plugin :: swithced from xml output to standard column output and switched to simpler awk statements in an attempt to clean the code. Also added an averages metric gatherer and moved some of the values from total to average