Added additional error checks
Merge branch 'master' of https://github.com/forflo/archfai