added dynsim
updated plot 
still problem with plot3d