V0.4.0

@nafg: Thanks for the suggestions. I've tried to create a new pull request, corresponding to your suggestions.  I'm not very experienced with git and github though, so please verify that what I did is correct.

Thanks,
Dominique