Update version number to 0.3.1 and Changelog.
Fix a bug when selecting an exam from the grading mode.
Merge branch 'hotfix-0.3.1'.