Separate master and sub-documents(line 95-99); rewrite output document
model(line 111-130); clone master package(line 154);pass cloned package
information to merge(line 164)
change pass in variable as subDocs. change for loop method as int
counting from 0.
add new local array allDocs(used in collectSkippedFiles()); pass in
packageInfoResult and return it after merging done. change mergeDocs to
subDocs.