Adding fix for Issue 19, discoveredIPs, and remvoing unused initGlobals