Updated file type check functionality and README  

Various updates:

1. README
2. Full text extraction for PostScript using ps2txt
3. Optimization for processing text files, avoids full text extraction
4. Minor optimization for variable passes and overall code structure
5. Enhanced readability of code, as well as updated documentation and explanatory comments

Please see details in commits and comparisons.

Lichi