Can now parse docx and pdf files, as well as most others. However the
uploaded file is now empty; will fix later but not important.