updated dtsa2 functions & added gnuplot example