Release version 3.1.0

Releases #40 and #41