release 0.4.0
fixes issue #9