Fixed and added config_manager and related files.