config ID legend corrected

config ID is updated to output to .txt files with legend correctly.