Edit doc file