clear function

Clear a field or all fields of the message and set them to their default values