Updated documentation to reflect API changes.