Cleaned Code, Improved the getConfig() in Module.php