Moved config from a class to namespace, a bit of a hack but at least mapping will be easier ( For now)
Even better hack to get config working ready for the proper readconfig function
Got config working