added some comments to daemon
added some comments to daemon