Remove DEFAULT_MAX_DISTANCE from config, move scan_file doc.