Remove debug code from library
Made relaunch if not visible an optional function, not an automatic action