Bumped to version 0.3.1. Updated HISTORY.md.