Added comments to getLineById.