Added Chi recognition in HTML
Added subdirectory checking for checkHTMLdir and checkPDFdir