changed the class vec3f to Vec3f, fixed bug in initalizing