added Singleton pattern to mainClass, kinectAll, and debugWindow classes