Ship 0.4.0

Fixes #37, #20