Updated docs to reflect changes in API.