Release v0.3.1 (bugfix and cleanup release)