completed saveList method, now properly saves the playlist to a file.