Added new error system

Implemented new error/exception system into config.py to start with