Made the Config->getConfigDirectory() public and other small changes