added logging

logging to log file so script can run in background on startup