clean up importing input files and saving results