Preparing for release v0.4.0