delete temporary files, add some comments