getVerticesByName method and minor fixes