Add log file arg and clean up comments and flags