added comments to Tab's class