Added comments to MainTab.java