improve formatting
update to print to file