corrected define name for vertices
added new function to update triangle vertex data