Fixed bug in finding the nick in a PRIVMSG and added an example file for checkMessages