Added Daemon Support; fixed logging between processes