Have you looked under Community > Documentation? You can already see the Reference Guide and How-To for 4.0.
Here is a link to the 4.0 documentation: https://world.mendix.com/display/howto40/Home