File cleanup

Hey Paul - just saw your notes on the issue about cleanup. I went ahead and wrote it for my purposes. Thanks for a great plugin!