Add comments to QState class