Well I found that this was a problem in previous versions in the Bug History. But in the version I am using the issue should have been solved.
doModelAdd and doModelRemove are used when you edit the xml in het source pane. There are however still some problems with doing that. If you find the problems and are able to fix them, please contribute your fixes.
Thank you. This will help very much.