Added comments to several methods