Added message type

Message type warning, error, other. Although just warning is used (?)