added vecmath class (vec3d.h) need to integrate into general code