Adding docs to emitter, fixing ordering problem, adding flush
Adding more docs, testing things properly, making stat calculations async