Deleted this post because I worked out some of the issues in it by starting again - see the next post.