Made Daemon a singleton
Refactored configuration management