Minor updates. Added vertex class.