added test harness for graphical output