added exit command to test disconnection
added regex parser for chat commands