Notifications handler in CLI + improved API for notifications (resulting array, more precisely)