Diagnostics

Its about time I actually get diagnostics put into master.
yeah, not *quite* ewma, but close enough for now. I make them into constants