Added comments to each method