added irc commands and error handling