Changed function name from errorMessages() to getMessages()
Updated docs