Added Singleton class

Before replacing in the files, I’m adding the Singleton class, which
would probably be renamed LogFile after