Error handling and bug fixes, fixed #4
Merge branch 'master' of https://github.com/jasuka/pyBot