fixing typo to compile
adding vertex for triangles, plus some vector functions, NOT TESTED