Add support for chat
fixes #31
renamed mode to inputmode
Merge pull request #45 from hwoarangmy/development

Add support for chat