Added documentation for new api