Now copying log into output directory.
Removed more legacy code.