add a few comments in check.py