Release 0.0.40.

Closes #204.