Implement log file creation, diminishing return on flinch duration, as well as fixing the damage formulae