cleaning up a little code, adding some reporting plugins.