Settings to keep track of attack and cure probability.
Fixed some syntax errors and added some logging.