added random minutes to reboot time
changed logging to file using nclog instead of log2file