add comments for pwmonitor.py