optimised the error check, added documentation
Merge branch 'airtime_hubot'