Updated documentation, added Daemon class and example