Added configuration file and refactored loadsentic