Update changelog and set version to 3.1.0