Released 0.4.0 and bumped version to 0.5.0