Support for rrdcached added
Example code uses daemon instead of rrdupdate
Fix dead code