multiple types of messages can be displayed
updated example in documentation
fixed typo in example