messagefunctions function

Manipulate messages and warnings