refactoring
selection code part of DocumentContent
removing unused field
removing obsolete test
mutable DocumentContent