added vector3d
double precision is working and saveState added