Changed some of the formating and added a function to convert the list into a string