everything works now, with some changes to tracpy, and makes a plot at the end