updated api docs in readme