Documented the outbox interface and implemented the inmemory cleanup