added docs to G, fixed bug in vertices being removed with edges