Added option to overwrite existing files.

This option allows the generator to skip a lot of work if it has been done previously.
some more optimizations
differentiate aggregate cpu time