Rearranged Flux
Changed EventPool to instance (keept static)
Added some unit tests