Fixed bug in deletion of intermediate files
Merge pull request #32 from Aplopio/delete_bug

Fixed bug in deletion of intermediate files