Added saving of files to backup folder and split up json according to course