bug fixes
used xcode to debug some of the editing code
fixing editing bugs