version 0.3.1

Minor updates and bugfixes