Added messageType

Brief line about the messageType function