completed the saving function
use trajectory to save simulation results
fixed a bug in machinesimualtor
complete the save function roughly
add saving suppport
fix some bugs
change the main view and implement storage func...
delete redundant code and change the main view