You're right, of course. I thought that I had deleted the page that iRite was on but I couldn't have. So today I completely deleted everything. Even defined the site again in DW. And it all inserted and worked straight away with the correct includes statement.