Added getMessages
Merge pull request #2 from fonsleenaars/master

Added getMessages