Set version to v0.4.0 and add history
Merge changes from release v0.4.0