Update to v0.4.0

See release notes for details