Made cmd silent, cleaned up daemon, added logging.