Add some documentation to __main__ and add extra parameter to import_config function