Updated the sketch so that each time a new write is begun, a new file is created