Merge branch 'release/4.0.0'
Merge tag '4.0.0' into develop

v4.0.0 released

- new, (hopefully) improved API