made some changes wrote up some of the discussion