Trim whitespace
Typo in integer decoding
Fix blank messages causing the bot to panic and close
Remove non-blocking setting