fixing the folderpath array and adding stuff for helpbook and linkdoc document types