added trajectry plots; potentials are now saved in a text file