added support for an optional title.

added optional support for a title in the alerts