Add extra documentation to hugbot.py to explain some functions