Updated saveData method and modified the toString

The saveData method now writes to the file as specified in the text
file. As a result the toString methods were modified to reflect this
format.