update documentation for v4.0