add messages to function output and to the help page