gpuplot integration. removed methods and put everything into main.