Changes in daemon
* changes in cmd parametrs
* some refactoring
+ added sleeptime parametr
- bug with pgrep