Deplaced gui update in the main loop function.
Added existsNamespace method in Audio and Graphics, and used it.