Formatted document and added ToC.