Added permission setting for log file and saved pickles
Merge remote-tracking branch 'origin/master'