got gnuplot working, betterAgent has all of Trevor's potential field code with small modification (I had to take out the random movement when stuck for the gnuplot).