Initial release of new version 4.0

New version with lots of improvements