txt vs xml fixes
output formating slight modification