Splitting the document into multiple files