Daemon

Implements what we need for #7 
is it possible to add a `max-depth` flag here? Cause we might need it.