GUI/Main separation

Now valgrind should be used with  the "--track-origins=yes" option to
find where we used uninitialized variables