Add comments to qsession.py