Added comments to recently implemented functions