updated documentation to relfect api changes