renamed DocumentWriter and DocumentReader