added delete files option; print execution time; other small improvements