Overwrite Flag

Adds manual  overwrite flag  for output  files and
starts refactoring code.

 On branch master

 Changes to be committed:
	modified:   improc