update documentation for version 4