refactored to EventCentral class, added cli, new API stubs