added vertex class. Updated private functions for window class.