more test code
some stuff for plots and gui interface