Refactors IndexManager and improves error messages in TextExtractor file
Extracts text from a PDF file