Fix small bug in init_config, improve documentation