make daemon example closer to other example
Merge pull request #5 from mchelen/patch-1

make daemon example closer to other example