Added the config.py file
Refactored the core code.

Removed the redundant verify_repo function and reorganised the code.