Release version 0.4.0 and update doco.
Begin work on next patch iteration.