Bumped version to v0.4.0. Updated HISTORY.md.