some more work on validation, added gnuplot scripts