Updated Document Class and Doc Editor