initialize writes to log
added arguments, log file