Added more message parse
Handle invalid messages
Added bot main with connection and response handler