Supports overwrite argument from control file.

By default, overwrite is turned off. Can be truned on via the control file via:

   overwrite = 1

I am not really happy with the checks (one for each file) which is a lot of code duplication.
I will clean this up.)