Increased version number to 0.3.1.

Ready for release.