More vertex editing improvements plus code cleanup.