save intermediary files

added an option for the user to save or not save the intermediary files