Vertex.java updated

now it has a name and autoasigns a unique id.