Fixed some non-updated variables (t.9030 -> brd.a) and made the loggging plots functional (but they have not been brought up to speed with the rest of the script)