Version number downgrade 4.0.0 -> 3.1.0

Downgraded the new version number from 4.0.0 to 3.1.0. The new version
does not contain any new features, only framework updates.