Added the sample of a daemon
Updated documentation