corrected constructor of vec3d class and added makefile