Added preserveCase field and accessors to Document class.