Separate writer.
Change Type field to Name.
Also implemented HTML writer.