Cleaned up the development environment.
Old env-var names are gone now!

Also cleared up the log messages.
Version bumped to 4.0.0
Docs added, and reformatted for Spinx.
Merge branch 'release-4.0.0' into develop