update the format of the txt file so it is more readable