Added the demo how to write a daemonized application