#318: helper.py, add minor comments