Text extraction refactoring

Changed logging logc;
Removed unused references;
Moved try/catch and some logging to higher level from specific
extractors;