updated config file to not run in background
Only runs in background when config file says to
Now handles reading if recording and anaylsis should be done in the background.