Added return string to the recognition functions.
Added a function which plots a summary of messages.