refactored daemon init and Daemon class to start inherit object