changed namesapce in vertex to an object
pulled up methods in ClassEntity and ModuleEntity into Entity