adding some more doc and examples for lifecycle event listeners and subscribers