Added .doc/.docx and .pdf file support.