revamped khn test + some additions to output::gnuplot