TemplateLogger updated

Also update Singleton.hpp and main.cpp