Bug fixes to ntpdate and main loop

Didn't calculate new offset after adjusting time in main loop. Will now
stop ntpd before performing ntpdate command.