renamed excerpt file, changed rules for .txt, .html, .pdf