final refactoring of the code ... vertex class broken into small pieces