fixed the logfiles
added cmdexec()
added the rsync logfile
added the statefile