Updated documentation to reflect API