Added some formatting to the history that will be saved in the file.