Prepare release of 0.4.0