Created document writer
Prepared toc write