loading and saving of files now functioning