refactored configuration source and added default configuration file + started to clean up OCR related calsses.